﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KingWoW
{
    public partial class KingHealSettingsGUIFORM : Form
    {
        public KingHealSettingsGUIFORM(Styx.Helpers.Settings s)
        {
            InitializeComponent();
            ClassSpecificPropertyGrid.SelectedObject = s;
            UtilityGrid.SelectedObject = ExtraUtilsSettings.Instance;
        }

        private void SaveButton_Click(object sender, EventArgs e)
        {
            ((Styx.Helpers.Settings)ClassSpecificPropertyGrid.SelectedObject).Save();
            ((Styx.Helpers.Settings)UtilityGrid.SelectedObject).Save();
            this.Close();               
            
        }
    }
}
